cordova.define("com.leocavalcante.cordova.plugins.InstantCaller.InstantCaller", function(require, exports, module) { 
	
	var exec = require('cordova/exec'),
    cordova = require('cordova');
	
	var InstantCaller = function () {
	 };	
		
	 
	 InstantCaller.prototype.call = function (number,successCallback, errorCallback) {
		    if (errorCallback == null) {
		        errorCallback = function () {
		        }
		    }
		    if (successCallback == null) {
		    	successCallback = function () {
		        }
		    }
		    if (typeof errorCallback != "function") {
		        console.log("lalalala");
		        return
		    }

		    if (typeof successCallback != "function") {
		        console.log("lalala");
		        return
		    }

		    cordova.exec(successCallback, errorCallback, 'InstantCaller', 'call', [number]);
		};


var instantcaller = new InstantCaller();
module.exports = instantcaller;
});
